package org.jeecg.modules.kuner.vipgoodbase.controller.api;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.kuner.vipgoodbase.entity.KrVipGoodBase;
import org.jeecg.modules.kuner.vipgoodbase.service.IKrVipGoodBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;
import java.util.List;

/**
 * @Description: 会员商品管理
 * @Author: jeecg-boot
 * @Date: 2025-02-19
 * @Version: V1.0
 */
@Api(tags = "小程序-会员商品管理")
@RestController
@RequestMapping("/api/krVipGoodBase")
@Slf4j
public class KrVipGoodBaseApiController extends JeecgController<KrVipGoodBase, IKrVipGoodBaseService> {

    @Resource
    private IKrVipGoodBaseService vipGoodBaseService;

    /**
     * 查询全部的商品信息
     *
     * @return 查询结果
     */
    @ApiOperation("查询全部商品信息")
    @GetMapping("/allGood")
    public Result<List<KrVipGoodBase>> allGood() {
        return Result.OK("查询成功！", vipGoodBaseService.list());
    }


}
